refactor!: use Celestia node fees estimation system - #2822
Conversation
Remove GasPrice and GasMultiplier methods from DA interface for compatibility with celestia-node. Gas configuration now comes exclusively from config files with defaults.
|
The latest Buf updates on your PR. Results from workflow CI and Release / buf-check (pull_request).
|
|
Claude finished @randygrok's task —— View job Code Review CompleteI've performed a comprehensive review of this PR refactoring the gas price/multiplier handling. Overall, this is a well-executed breaking change that significantly simplifies the DA interface and centralizes gas configuration management. Here are my findings: SummaryThis PR successfully removes Strengths
Issues & Recommendations1. Gemini's Unused Context Concern ✅Status: Already addressed in the code. Gemini Code Assist flagged two functions ( 2. Gas Price Still Passed to DA Layer (Low Priority - By Design)Files:
The DA interface still includes Submit(ctx context.Context, blobs []Blob, gasPrice float64, namespace []byte) ([]ID, error)
SubmitWithOptions(ctx context.Context, blobs []Blob, gasPrice float64, namespace []byte, options []byte) ([]ID, error)However, in res := types.SubmitWithHelpers(submitCtx, s.da, s.logger, marshaled, -1, namespace, mergedOptions)Analysis: This appears intentional - the Recommendations:
3. Configuration Validation ✅File: Good to see that 4. Mock Generation Consistency
|
Summary of ChangesHello @randygrok, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refactors the Data Availability (DA) layer's gas configuration mechanism. The primary goal is to simplify the DA interface and ensure compatibility with external systems like Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request effectively refactors the gas price and multiplier handling by removing them from the DA interface and relying on configuration instead. The changes are consistent and well-implemented across the codebase, simplifying the architecture. I've found a minor area for improvement regarding unused context parameters in the updated functions, which will enhance code cleanliness.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2822 +/- ##
==========================================
- Coverage 64.79% 64.65% -0.14%
==========================================
Files 81 81
Lines 7224 7170 -54
==========================================
- Hits 4681 4636 -45
+ Misses 2003 1994 -9
Partials 540 540
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…er from DA interface and configuration
|
The latest Buf updates on your PR. Results from workflow CI / buf-check (pull_request).
|
There was a problem hiding this comment.
utACK! we should ~~update the changelog~ and make @auricom aware.
…etryPolicy structure
ae47f82
alpe
left a comment
There was a problem hiding this comment.
The changes look good 👍
CI is failing though
* main: refactor!: use Celestia node fees estimation system (#2822)
Summary
Remove GasPrice and GasMultiplier from DA interface to use celestia-node's fee estimation.
Closes #2235
Changes
GasPrice()andGasMultiplier()methods from DA interface